<template>
	<view class="qq">
		<view class="logo">

		</view>
		<view class="infos">
			<image class="logo1" src="https://tb.wuyouzhuan888.com/applet-icon/icon002.png" mode=""></image>

			<view class="btnGroup">
				<button @click="clickContinue()" data-eventsync="true" class="btn cancle">
					继续看广告下载
				</button>
				<view @click="clickVip()" class="btn">
					<image class="icon" src="https://tb.wuyouzhuan888.com/applet-icon/icon003.png" mode=""></image>
					开通VIP会员
				</view>


			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			atlasId: 0,
			atlasName: '',
			selectIndex: 0,
			jsonImgList: '',
			jumpAppid: '',
			picType: '',
		},
		data() {
			return {

			}
		},
		methods: {
			// 点击继续下载
			clickContinue() {
				if (this.jumpAppid == '') {
					this.$emit('clickContinue', 0)
				} else {
					this.$emit('clickContinue', 1)
					let path = '';
					if (this.picType == 'pc') {
						path = 'pages/sys/cate_bags/detail'
					} else if (this.picType == 'mobile') {
						path = 'pages/sys/cate_bags/detail'
					} else if (this.picType == 'trends') {
						path = 'pages/sys/cate_bags/trends'
					} else {
						path = 'pages/sys/home_bags/photodetail'
					}

					let jumpPath = path + '?atlasId=' + this.atlasId +
						'&atlasName=' + this.atlasName +
						'&selectIndex=' + this.selectIndex +
						'&imgList=' + this.jsonImgList;
					let that = this;
					uni.navigateToMiniProgram({
						appId: that.jumpAppid,
						path: jumpPath,
						fail(res2) {
							that.$emit('clickContinue', 0)
						}
					})
				}
			},
			// 点击会员
			clickVip() {
				// 点击会员
				this.$emit('clickVip')
			},
		}
	}
</script>

<style lang="scss" scoped>
	.qq {
		position: relative;

		.btnGroup {
			margin-top: 26rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;

			.btn {

				background: linear-gradient(to right, rgba(70, 89, 255, 1), rgba(161, 129, 255, 1));
				// width: 280rpx;
				padding: 0 31rpx;
				height: 80rpx;
				border-radius: 70rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				font-size: 34rpx;
				font-family: PingFang HK-Light, PingFang HK;
				font-weight: 300;
				color: #FFFFFF;
				margin: 0 auto;

				.icon {
					width: 38rpx;
					height: 40rpx;
					margin-right: 9rpx;
				}
			}

			.cancle {
				background: #2F336B !important;
			}

			.cancle::after {
				border: none !important;
			}

		}

		width: 638rpx;


		.infos {
			padding-bottom: 44rpx;
			border-radius: 20rpx;
			// padding: 120rpx 0 0;
			// background: linear-gradient(180deg, #373C5F 0%, #242234 100%);

			.tit {
				text-align: center;
				font-size: 44rpx;
				font-family: HYQiHei-45S, HYQiHei;
				font-weight: normal;
				line-height: 52rpx;
				// text-shadow: 0px 2px 0px rgba(28,29,53,0.42);
				background: linear-gradient(180deg, #FFE4BB 0%, #FFFFFF 30%, #F4F2FF 42%, #F0DD98 100%);
				-webkit-background-clip: text;
				-webkit-text-fill-color: transparent;
			}

			.desc {
				padding: 50rpx 45rpx 109rpx;
				font-size: 30rpx;
				font-family: PingFang SC-Light, PingFang SC;
				font-weight: 300;
				color: #FFFFFF;
			}


		}

		.logo1 {
			// display: block;r
			width: 486rpx;
			height: 401rpx;
			margin: -200rpx auto 0 76rpx;

		}

		.logo {

			width: 486rpx;
			height: 200rpx;

		}

	}
</style>